package com.msb.mall.ware.feign;

import com.msb.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @auther: zhaoss
 * @date: 2022\9\19 0019 - 09 - 19 - 15:16
 * @description: com.msb.mall.ware.fegin
 * @version: 1.0
 */
@FeignClient("mall-product")
public interface ProductFeignService {

    /**
     *  当然我们也可以通过网关来调用商品服务
     * @param skuId
     * @return
     */
    @RequestMapping("/product/skuinfo/info/{skuId}")
    public R info(@PathVariable("skuId") Long skuId);
}
